package com.shierke.Ume.ui.fragment.me

import ViewPagerAdapterLazyFragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.StaggeredGridLayoutManager
import com.shierke.Ume.R
import com.shierke.Ume.ui.adapter.me.MeLikeAdapter
import kotlinx.android.synthetic.main.fragmeny_home_me_liked.*

/**
 * Create by Ybx
 * on 2020-10-13
 * Desribe:
 */
class HomeMeLikedListFragment : ViewPagerAdapterLazyFragment() {
    override fun onFragmentHide() {
    }

    override fun onFragmentShow() {

    }


    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        val view =
            LayoutInflater.from(activity!!).inflate(R.layout.fragmeny_home_me_liked, null, false)
        return view

    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)

        meLikeList.layoutManager =
            StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL)
        val meLikeAdapter = MeLikeAdapter()
        meLikeList.adapter = meLikeAdapter

    }
}